home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-05-01 | 2.9 KB | 105 lines | [TEXT/MPS ] |
- /*
- File: HIScrollingPanels.idl
-
- Contains: Interface to the scrolling panel class
-
- Version: Technology: System 8.0
- Release: Universal Interfaces 3.0d3 on Copland DR1
-
- Copyright: © 1995-1996 by Apple Computer, Inc. All rights reserved.
-
- Bugs?: If you find a problem with this file, send the file and version
- information (from above) and the problem description to:
-
- Internet: apple.bugs@applelink.apple.com
- AppleLink: APPLE.BUGS
- */
-
-
- #ifndef __HISCROLLINGPANELS_IDL__
- #define __HISCROLLINGPANELS_IDL__
-
-
- #include <HIPanels.idl>
- #include <HIControls.idl>
- #include <HIScrollingPanelTypes.idl>
-
-
- interface HIScrollingPanel : HIPanel
- {
- // ======================================================
- // Public Methods
- // ======================================================
-
- // Programatic Initalizer
- OSStatus InitScrollingPanel(in RefLabel identifier,
- in HIWindow window,
- in Rect boundingRect,
- in HIPanel scrolledPanel,
- in boolean visibleVerticalScrollBar,
- in boolean visibleHorizontalScrollBar,
- in boolean makeRoomForGrowBox);
-
- // Scrolled panel access
- void SetScrolledPanel(in HIPanel scrolledPanel);
- HIPanel GetScrolledPanel();
-
- // Scroling panels scrolled panels bounds
- void GetScrolledPanelBoundingRect(in Rect scrolledPanelBoundingRect);
-
- // Vertical and horizontal scroll values
- void SetVerticalScrollValue(in SInt32 verticalValue);
- SInt32 GetVerticalScrollValue();
-
- void SetHorizontalScrollValue(in SInt32 horizontalValue);
- SInt32 GetHorizontalScrollValue();
-
- // Increments
- void SetVerticalScrollIncrement(in UInt32 increment);
- UInt32 GetVerticalScrollIncrement();
-
- void SetHorizontalScrollIncrement(in UInt32 increment);
- UInt32 GetHorizontalScrollIncrement();
-
- // Scroll bar visibility
- void ShowVerticalScrollBar();
- void HideVerticalScrollBar();
- boolean IsVerticalScrollBarVisible();
-
- void ShowHorizontalScrollBar();
- void HideHorizontalScrollBar();
- boolean IsHorizontalScrollBarVisible();
-
- // ======================================================
- // Protected Utility Methods
- // ======================================================
- implementation {
-
- passthru C_h = "#include <HIScrollingPanelTypes.h>";
-
- passthru C_xh = "#include <HIScrollingPanelTypes.h>";
-
- releaseorder: InitScrollingPanel,
- SetScrolledPanel,
- GetScrolledPanel,
- GetScrolledPanelBoundingRect,
- SetVerticalScrollValue,
- GetVerticalScrollValue,
- SetHorizontalScrollValue,
- GetHorizontalScrollValue,
- SetVerticalScrollIncrement,
- GetScrollBarElementSize,
- GetVerticalScrollIncrement,
- SetHorizontalScrollIncrement,
- GetHorizontalScrollIncrement,
- ShowVerticalScrollBar,
- HideVerticalScrollBar,
- IsVerticalScrollBarVisible,
- ShowHorizontalScrollBar,
- HideHorizontalScrollBar,
- IsHorizontalScrollBarVisible;
- };
- };
-
- #endif
-